<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
    <title>直播聚合</title>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <link rel="stylesheet" href="/static/bootstrap/css/bootstrap.min.css">
    <link rel="stylesheet" href="/static/font-awesome/css/font-awesome.min.css">
    <link rel="stylesheet" href="/static/css/style.css">
</head>
<body>
<div class="layui-layout-admin">
    <div class="layui-header">
        <ul class="layui-nav nav-right" lay-filter="">
            <li class="layui-nav-item"><a href="/">直播聚合</a></li>
            <li class="layui-nav-item layui-this"><a href="/">主页</a></li>
            <li class="layui-nav-item"><a href="">历史记录</a></li>
            <li class="layui-nav-item">
                <a href="javascript:;">用户</a>
                <dl class="layui-nav-child"> <!-- 二级菜单 -->
                    <dd><a href="/login">登录</a></dd>
                    <dd><a href="">注册</a></dd>
                    <dd><a href="">留言</a></dd>
                </dl>
            </li>
            <li class="layui-nav-item"><a href="mailto:admin@kuddy.cn">邮件反馈</a></li>
        </ul>
    </div>
    <div class="layui-side layui-bg-black">
        <div class="layui-side-scroll">
            <ul class="layui-nav layui-nav-tree" lay-filter="video">
                <li class="layui-nav-item layui-nav-itemed">
                    <a href="javascript:;">分类</a>
                    <dl class="layui-nav-child">
                        {volist name='menu' id='vo'}
                        <dd {if $path==
                        '/' AND $vo.url == 'csgo'}class="layui-this" {/if}{eq name="path" value="$vo.url" }class="layui-this" {/eq}><a href="{$vo.url}">{$vo.name}</a></dd>
                        {/volist}
                    </dl>
                </li>
            </ul>
        </div>
    </div>
    <div class="layui-body">
        <fieldset class="layui-elem-field layui-field-title custom-top">
            <legend class="custom-legend">{$active.explain} - {$active.name}</legend>
            <div class="layui-field-box">
                <div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
                    <ul class="layui-tab-title layui-box">
                        <li class="layui-this" id="all">全部</li>
                        <li id="douyu">斗鱼</li>
                        <li id="huomao">火猫</li>
                    </ul>
                    <div class="layui-tab-content">
                        <div class="container-fluid">
                            <div class="row">
                                {volist name='list' id='vo'}
                                <div class="col-xs-6 col-md-2 {$vo.room_offer} all">
                                    <a href="{$vo.room_url}" class="thumbnail"
                                       style="background-image: url('{$vo.room_image_url}');background-size: cover;">
                                        <img src="/static/images/default.png" alt="default">
                                    </a>
                                    <div class="room-info">
                                        <h5 title="{$vo.room_name}" data-toggle="tooltip" data-placement="bottom" title="{$vo.room_name}">{$vo.room_name}</h5>
                                        <p>{$vo.room_username}</p>
                                        <p title="人气值：{$vo.room_views_real}">人气值：{$vo.room_views}</p>
                                    </div>
                                </div>
                                {/volist}
                            </div>
                        </div>
                    </div>
                </div>
            </div>
        </fieldset>
    </div>
</div>

<script src="/static/js/jquery.min.js"></script>
<script src="/static/layui/layui.js"></script>
<script src="/static/bootstrap/js/bootstrap.min.js"></script>
<script>
    //layui调用
    layui.use(['layer','element'], function(){
        var layer = layui.layer;
        var element = layui.element();

        //tab栏监听
        element.on('tab', function(){
            var e = '.'+this.id;
            $('.all').hide();
            $(e).show();
        });

        //小提示
        $(function () {
            $('[data-toggle="tooltip"]').tooltip()
        })
    });
</script>

</body>
</html>